/* firefox Http Methods 样式问题 */
ul > li > ul > li .sidebar-heading-link-title {
    position: relative;
    left: 45px;
}

.scalar-api-reference .sidebar-heading-link-method {
    position: absolute;
    left: 10px;
}

/* 移动端 */
.references-mobile-header {
    width: auto !important;
}

.references-sidebar-mobile-open .sidebar-heading-link-method {
    position: absolute;
    left: 10px;
}

/* 字体样式 */
.scalar-api-reference h2.section-header-label {
    font-size: var(--ifm-h2-font-size) !important;
}

.scalar-api-reference h3.section-header-label {
    font-size: var(--ifm-h4-font-size) !important;
}

.scalar-api-reference .introduction-description > div {
    margin-bottom: 1rem;
}

.scalar-api-reference .introduction-description .markdown pre {
    margin: 10px 0;
}

.scalar-api-reference  .introduction-section .section-content > div {
    margin-bottom: 10px;
}

.scalar-app .markdown ul li {
    padding-left: 0 !important;
}

.scalar-api-reference table {
    overflow: unset;
}

.scalar-app .markdown pre {
    margin-top: 10px;
}

.sidebar-indent-nested .sidebar-indent-nested .sidebar-heading:before {
    background: unset !important;
}

.scalar-api-reference .enum-toggle-button {
    padding: 5px 0;
    display: flex;
}

/* Scalar API Reference 加载效果 */
.scalar-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.scalar-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ifm-color-primary-light);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

.scalar-loading-text {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ifm-color-gray-700);
}

@keyframes spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

[data-theme='dark'] .scalar-loading-indicator {
    background-color: rgba(2, 8, 23, 0.8);
}

[data-theme='dark'] .scalar-loading-spinner {
    border-color: var(--ifm-color-gray-700);
    border-top-color: var(--ifm-color-primary);
}